import Vue from 'vue'
import App from './App.vue'
import router from './router'
import store from './store'

Vue.config.productionTip = false

Vue.filter('formatDate',  function (data) {
  return data.replaceAll('h','H')
})
Vue.directive('color',  {
  bind(el, binding) {
    el.style.color = binding.value
  },
  inserted(el) {
    console.log(el)
    el.focus()
  },
  updated(el) {
    console.log(el)
  }
})
new Vue({
  router,
  store,
  render: h => h(App)
}).$mount('#app')
